package com.example.demo.ascyn.util;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * Created by yijy on 2017/8/19.
 */
@Component
public class AsyncTask {
    @Async
    public void say(int i){

        System.out.println(Thread.currentThread().getName()+":say()----------------start："+i);
    }

    @Async
    public void sayHello(int i){

        System.out.println(Thread.currentThread().getName()+":sayHello()***********start："+i);
    }
}
